<?php
ini_set('max_execution_TIME', 600);
include("dbconfig.php");
$content1=$_POST['content1'];
$content2=$_POST['content2'];
$suggestion1=$_POST['suggestion1'];
$suggestion2=$_POST['suggestion2'];
   $db = mysql_pconnect($dbhost, $dbuser, $dbpassword) or die("Connection Error: " . mysql_error());
   mysql_select_db($database) or die("Error conecting to db.");
   mysql_query("SET names UTF8");
$SQL="Update alarminfo set content='$content1' , suggestion='$suggestion1' where id=1";
 $result =mysql_query ($SQL);
$SQL="Update alarminfo set content='$content2' , suggestion='$suggestion2' where id=2";
 $result =mysql_query ($SQL);
 echo "更新成功";
?>
